<td>
<?php 
$sSql="SELECT
portal_layout.icon
FROM
portal_layout
INNER JOIN portal_pages ON portal_pages.layoutId = portal_layout.id
WHERE
portal_pages.id = ".$currentObject->id;
$rs2=$GLOBALS["conn"]->Execute($sSql);

?>
<img src="<?php echo getFilesPath("layout",false)."/".$rs2->fields["icon"]; ?>" width="32" style="text-align:center">
</td><td>


				<?php 
				
				$sSql= "Select Count(parentId) as cnt From portal_pages where parentId = ".$currentObject->id;
	if (EW_DEBUG_ENABLED) echo $sSql."<br/>";
	$rs2=$GLOBALS["conn"]->Execute($sSql);
	$cnt=$rs2->fields["cnt"];
	if ($cnt>0){
				?>
<a href="?table=portal_pages&filter=parentId=<?php echo $currentObject->id; ?>"><img src="./images/subpages.png" border="0" title="Sub pages" alt="subpages" ></a>
<?php } ?>
</td>
<td>

<a href="?table=portal_credentials&filter=objectName=<?php echo getObjByKey("portal_objects","id","name","portal_pages"); ?>&objectId=<?php echo $currentObject->id; ?>"><img src="images/menu/portal_credentials.png"></a></td>
